package chapter06;

public class Time {
    public static void main(String[] args) {
        long totalMilliseconds = System.currentTimeMillis();
        long totalSeconds = totalMilliseconds / 1000;
        long currSeconds = totalSeconds % 60;
        long totalMinutes = totalSeconds / 60;
        long totalHours = totalMinutes / 60;
        long currHours = totalHours % 24;

        System.out.println(totalMilliseconds);
        System.out.println(totalSeconds);
        System.out.println(currSeconds);
        System.out.println(totalMinutes);
        System.out.println(totalHours);
        System.out.println(currHours);
    }
}
